/**
 * Created by xx on 2016/6/29.
 */

module.exports = function(av){
    return {
        doAjaxPromise: function(ops, success, error, complete){
            av.util.ajax(ops, true).done(success).fail(error).always(complete);
        },
        doAjax: function(ops){
            av.util.ajax(ops, false);
        }
    }
};


